const el = document.createElement("div")

el.innerText = 'hello world'

document.body.append(el)

let i = 0
while (i < 1000) {
    console.log(i);
    i++;
}